home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.teleport.com!usenet
- From: GHouck <hksys@teleport.com>
- Newsgroups: comp.lang.c
- Subject: Re: Q: C pipe function
- Date: 18 Apr 1996 09:14:43 GMT
- Organization: systems hk
- Message-ID: <4l5163$up@nadine.teleport.com>
- References: <3174FEA6.41C6@wight.hursley.ibm.com>
- NNTP-Posting-Host: ip-pdx02-49.teleport.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
-
- Max Waterman <dwater@wight.hursley.ibm.com> wrote:
- >Is there a function accessible from C that allows you to write to the
- >stdin of a command and read from the stdout of that command? eg :-
- >
- [snip]
-
- How about:
-
- yourprogram | sort | yourprogram
-
- Where yourprogram, if given no std-input, generates its
- output (whatever that is). If given some std-input, it
- processes it (whatever it is) [and outputs it?]
-
- Yours, Geoff Houck
-
-